<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<html lang="en">
<html>
<head>
    <meta charset="UTF-8">
    <title>🛏Picuang - 永久免费 | 免登录图床</title>
    <link href="/favicon.png" rel="icon">

    <link href="/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link href="/css/bootstrap/cover.css" rel="stylesheet">

    <script src="/js/jquery.min.js"></script>
    <script src="/bootstrap/js/bootstrap.min.js"></script>
    <script src="/js/clipboard.js"></script>

    <meta content="width=device-width, initial-scale=1" name="viewport">
</head>
<body>
<div class="site-wrapper">
    <div class="site-wrapper-inner">
        <div class="cover-container">
            <div class="masthead clearfix">
                <div class="inner">
                    <a href="/"><h3 class="masthead-brand">必床 Picuang</h3></a>
                    <nav>
                        <ul class="nav masthead-nav">
                            <li id="logout" style="display: none"><a href="javascript:logout();">注销</a></li>
                            <li><a href="/">上传</a></li>
                            <li><a href="/history">历史</a></li>
                            <li class="active"><a href="/admin">管理</a></li>
                        </ul>
                    </nav>
                </div>
            </div>

            <div class="inner cover">
                <div id="admin" style="margin-top: 36px; margin-bottom: 36px;">
                    <div id="message"></div>
                    <div id="config" style="display: none">
                        <div class="row" id="config-row">
                        </div>
                        <hr color="#6f5499"
                            size="3" style="filter: alpha(opacity=100,finishopacity=0,style=3); margin-top: 36px; margin-bottom: 36px;" width="95%"/>
                        <div class="config-buttons">
                            <div aria-label="..." class="btn-group btn-group-justified" role="group">
                                <div class="btn-group" role="group">
                                    <button class="btn btn-default" onclick="exportConfig()" type="button">导出配置</button>
                                </div>
                                <div class="btn-group" role="group">
                                    <button class="btn btn-primary" onclick="adminOnlyToggle()" type="button">仅允许管理员上传 (当前: <span id="adminOnlyStatus"></span>)</button>
                                </div>
                                <div class="btn-group" role="group">
                                    <button class="btn btn-default" id="importButton" type="button">导入配置</button>
                                    <input accept="" id="import"
                                           multiple
                                           name="importFile"
                                           onchange="importConfig()" style="display: none" type="file">
                                </div>
                            </div>
                        </div>
                        <hr color="#6f5499"
                            size="3" style="filter: alpha(opacity=100,finishopacity=0,style=3); margin-top: 36px; margin-bottom: 36px;" width="95%"/>
                        <div class="help">
                            <h4>Q：如何修改我的上传大小限制？</h4>
                            <p>A：编辑文件 "<span th:text="${appConfLocation}"></span>"<br>
                                修改 "spring.servlet.multipart.max-file-size" 和
                                "spring.servlet.multipart.max-request-size" 选项<br>
                                假如限制大小为10MB，则将两个键的值全部改为"10MB"，重启服务器后就会生效。<br>
                                如果重启服务器后不生效或仍有问题，请参阅<a
                                        href="https://github.com/AdlerED/Picuang#rotating_light-%E6%B3%A8%E6%84%8F%E4%BA%8B%E9%A1%B9"
                                        target="_blank"><b>这里</b></a></p>
                        </div>
                    </div>
                </div>
            </div>

            <div class="mastfoot">
                <div class="inner">
                    <p>
                        <script src="https://js.users.51.la/20181641.js" type="text/javascript"></script>
                        <br>
                        <a href="http://beian.miit.gov.cn" style="text-decoration: none;"
                           target="_blank">京ICP备18063791号</a>
                        <br>
                        <a href="https://github.com/AdlerED" style="text-decoration: none;" target="_blank"><strong>GitHub:
                            AdlerED</strong></a>
                    </p>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="/js/user/clipboard-control.js"></script>
<script src="/js/user/click-listen.js"></script>
<script src="/js/user/common-queue.js"></script>
<script src="/js/user/drag-and-drop.js"></script>
<script src="/js/user/on-paste.js"></script>
<script src="/js/user/notify.js"></script>
<script src="/js/d-toast.min.js"></script>
<script src="/js/axios.min.js"></script>
<script src="/js/fantastic-progress-bar-bootstrap.js"></script>
<script src="/js/admin/main.js"></script>
<script src="/js/admin/config.js"></script>
</body>
</html>